{include file="$temps.head" title="$webs.title" keywords="$webs.keywords" description="$webs.description" /}
<form class="layui-form" action="{:url('gouwuxue')}" method="post">
    <ul class="layout fex-column">
        {volist name="gouwuche" id="cx" empty="" key="k"}
        <li class="layout cx-fex-l bg-fff or-tuanshop">
            <a class="layout cx-fex-l" href="{:url('Article/index',array('aid'=>$cx.shop.aid))}">
            <div class="xl1 cx-fex-c fex-items-c">
                <i class="shop-icon cx-icon cx-icon-xuanze t-18 cx-click" data-type="gouwuxue" data-aid="{$cx.shop.aid}"></i>
            </div>
            <div class="xl3">
                <div class="or-tuan-img">
                    <img class="img-responsive" src="{$cx.shop.picurl}" alt="{$cx.shop.title}" >
                </div>
            </div>
            <div class="xl8 pad-l10 cx-fex fex-column">
                <h3 class="layout or-title">{$cx.shop.title}</h3>
                <div class="layout cx-fex">
                    <div class="t-gray t-14 pad-l10 cx-fex-c fex-items-c">
                        <i class="cx-icon cx-icon-renminbi1688 t-red"></i>
                        <span class="t-red t-16 shopzj{$cx.shop.aid}">
                        {switch name="$cxbsuser.group_id" }
                        {case value="6"}{$cx['shop']['yinjia'] * $cx['num']}{/case}
                        {case value="7"}{$cx['shop']['jinjia'] * $cx['num']}{/case}
                        {case value="8"}{$cx['shop']['pifajia'] * $cx['num']}{/case}
                        {default /}
                        {$cx['shop']['shichuangjia'] * $cx['num']}
                        {/switch}
                    </span>
                    </div>
                    <div class="cx-fex-r">
                        {switch name="$cxbsuser.group_id" }
                        {case value="6"}<input class="ipt t-c shopdj{$cx.shop.aid}" type="hidden" value="{$cx.shop.yinjia}">{/case}
                        {case value="7"}<input class="ipt t-c shopdj{$cx.shop.aid}" type="hidden" value="{$cx.shop.jinjia}">{/case}
                        {case value="8"}<input class="ipt t-c shopdj{$cx.shop.aid}" type="hidden" value="{$cx.shop.pifajia}">{/case}
                        {default /}
                        <input class="ipt t-c shopdj{$cx.shop.aid}" type="hidden" value="{$cx.shop.shichuangjia}">
                        {/switch}
                        <input class="ipt t-c shop{$cx.shop.aid}" type="hidden" name="shop[{$cx.shop.aid}][aid]" value="">
                        <i class="button cx-icon cx-icon-minus cx-click" data-type="gouwunum" data-kc="{$cx.shop.kucun}" data-aid="{$cx.shop.aid}" data-cid="0"></i>
                        <div style="width: 50px;"><input id="artnum{$cx.shop.aid}" class="ipt t-c" name="shop[{$cx.shop.aid}][num]" required lay-verify="required|number" type="text" value="{$cx.num}"></div>
                        <i class="button cx-icon cx-icon-add cx-click" data-type="gouwunum" data-kc="{$cx.shop.kucun}" data-aid="{$cx.shop.aid}" data-cid="1"></i>
                    </div>
                </div>
            </div>
            </a>
        </li>
        {/volist}
    </ul>
    <div class="layout or-playk pos-f bg-fff cx-fex">
        <div class="cx-fex-l fex-items-c pad-l10">
            <i class="cx-icon cx-icon-xuanze t-gray t-18 cx-click" data-type="gouwuallxue"> <span class="t-16">全选</span></i>
            <div class="t-gray t-14 ml-10 cx-fex-l">
                <span class="mr-5">合计：</span>
                <i class="cx-icon cx-icon-renminbi1688 t-red"></i>
                <span class="t-red t-18 allmoney">0</span>
            </div>
        </div>
        <div class="cx-fex-r">
            <div class="but-edit">
                <a class="cx-click button bg-blue" data-type="gouwuedit">编辑</a>
            </div>
            <div class="but-end cx-fex-l" style="display: none;">
                <a class="cx-click button bg-blue" data-type="gouwuend">完成</a>
            </div>
            <div class="but-del" style="display: none;">
                <a class="cx-click button bg-red" data-type="gouwudel">删除</a>
            </div>
            <button class="button bg-red but-play" lay-submit lay-filter="gowubtn">去结算</button>
        </div>
    </div>
</form>
{include file="$temps.foot" /}